package com.itheima;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @Author weizhongli
 * @Date 2020/4/24
 * @Version v1.0
 * @Description
 **/
public class MyServlet extends SpringBootServletInitializer {

    //作用等同web.xml
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(SpringBoot02Application.class);
    }
}
